﻿<%@ Page Language="C#" MasterPageFile="~/promo/promotion.master" AutoEventWireup="true"
    CodeFile="promo-facebook.aspx.cs" Inherits="promo_promo_facebook" Async="true" %>

<%@ Register Src="../controls/usrPhoneNo.ascx" TagName="usrPhoneNo" TagPrefix="uc1" %>
<%@ Register Src="../controls/usrDate.ascx" TagName="usrDate" TagPrefix="uc2" %>
<%@ Register Src="~/controls/usrOccupation.ascx" TagName="usrOccupation" TagPrefix="uc3" %>
<%@ Register Src="~/controls/usrCompanyLogoTravel.ascx" TagName="usrCompanyLogoTravel"
    TagPrefix="uc4" %>
<%@ Register Src="../controls/usrIdType.ascx" TagName="usrIdType" TagPrefix="uc6" %>
<%@ Register Src="~/controls/usrNoJS.ascx" TagName="usrNoJS" TagPrefix="ucNoJS" %>
<%@ Register Src="~/controls/usrCXAds.ascx" TagName="usrCXAds" TagPrefix="ucAds" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager" runat="server">
    </asp:ScriptManager>
    <!--subscribe popup !-->
    <div class="container">
        <div id="contactFormContainer">
            <div id="contactForm">
                <div class="contact_wrap">
                    <div class="bar">
                        &nbsp;</div>
                    <%--<form name="cform" class="contactForm">--%>
                    <asp:UpdatePanel runat="server" ID="upanelSubscribe" UpdateMode="Conditional">
                        <ContentTemplate>
                            <h3>
                                Join the CompareXpress E-Newsletter.</h3>
                            <div class="input_boxes">
                                <asp:ValidationSummary ID="valsummarySubscribe" CssClass="errorSummary" HeaderText="Please complete the form"
                                    runat="server" ValidationGroup="emailsubscribe" />
                                <label for="e-mail">
                                    E-mail</label>
                                <asp:TextBox ID="txtEmailSubscribe" CssClass="splinput2" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rfvEmailSubscribe" validationErrorCssClass="validationError"
                                    runat="server" ValidationGroup="emailsubscribe" ErrorMessage="" Text="" ControlToValidate="txtEmailSubscribe"
                                    Display="Dynamic"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator validationErrorCssClass="validationError" ID="revEmailSubscribe"
                                    runat="server" ValidationGroup="emailsubscribe" ErrorMessage="" Text="" ControlToValidate="txtEmailSubscribe"
                                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
                                <br />
                                <div id="divSuccess" runat="server" visible="false" class="div_success">
                                    Your Email has been sent to us.
                                    <br />
                                    Thanks for Subscribing! :)</div>
                                <asp:CustomValidator ID="cvSubscribe" runat="server" ControlToValidate="txtEmailSubscribe"
                                    ValidationGroup="emailsubscribe" ErrorMessage="Email already exist in our list"
                                    Text="test" OnServerValidate="CheckIsExisting" CssClass="MessageAfter"></asp:CustomValidator>
                                <asp:Label runat="server" ID="lblMessageSubscribe" Text="sdfsdfsdf" CssClass="MessageAfter"
                                    Visible="false"></asp:Label>
                            </div>
                            <fb:login-button length="small" onlogin='FB.Connect.showPermissionDialog("email,read_stream", function(x){window.location.reload();});'>
                            </fb:login-button>
                            <asp:Button ID="btnFacebookAuth" runat="server" OnClick="FbAuthClick" Text="Subscribe with Facebook Account"
                                Width="250" Height="30" />
                            <asp:Button ID="btnSubscribe" runat="server" Text="subscribe" class="submit" ValidationGroup="emailsubscribe"
                                OnClick="btnSubscribe_Click" />
                            <%--  <input type="submit" onfocus="this.blur()" value="Submit Form" name="submit" class="submit" />--%>
                            <%--   </form>--%>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
            </div>
            <div class="contact">
                &nbsp;</div>
        </div>
    </div>
    <!--end subscribe popup !-->
    <div style="margin: 0 auto; width: 1001px;">
        <div class="elements_inner_wrapper">
            <div id="contentBody_rel">
                <h1>
                    Latest Promotions - Bringing Financial Deals to You</h1>
                <!--PROMO 1 !-->
                <div id="divPromo1" runat="server" class="promogrid1">
                    <div id="divPromo1Disable" runat="server">
                    </div>
                    <%--<h2>
                        ACE Travel Insurance</h2>
                    <div class="pro-warp">
                        <div class="pro-adv">
                            <img src="http://www.egyptdirectholidays.com/travel_insurance.jpg" alt="Travel Insurance"
                                width="328" height="147" />
                        </div>
                        <div class="pro-badge">
                            <img src="/images/logos/ace.jpg" alt="Special Offers" width="133" height="94" />
                            <ul class="view-action">
                                <li class="view-deal"><a href="../travel-insurance/"></a></li>
                            </ul>
                        </div>
                    </div>--%>
                    <div class="clear">
                    </div>
                    <div class="promo_action">
                        <div class="countdown_wrap">
                            <!-- Countdown dashboard start -->
                            <asp:Timer runat="server" ID="UpdateTimer1" Interval="1000" OnTick="UpdateTimer1_Tick" />
                            <asp:UpdatePanel runat="server" ID="TimedPanel1" UpdateMode="Conditional">
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="UpdateTimer1" EventName="Tick" />
                                </Triggers>
                                <ContentTemplate>
                                    <div id="countdown_db">
                                        <div class="dash2 days_dash2" id="divTimer1Days" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer1Days" Text="00" /></div>
                                        </div>
                                        <div class="dash2 hours_dash2" id="divTimer1Hours" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer1Hours" Text="00" /></div>
                                        </div>
                                        <div class="dash2 minutes_dash2" id="divTimer1Minutes" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer1Minutes" Text="00" /></div>
                                        </div>
                                        <div class="dash2 seconds_dash2" id="divTimer1Seconds" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer1Seconds" Text="00" /></div>
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            <!-- Countdown dashboard end -->
                            <div class="info_message" id="complete_info_message" style="display: none;">
                                Promotion just started
                            </div>
                        </div>
                        <div class="pro-share">
                            <ul class="pro-s-icons">
                                <%--<li class="tb-s"><a href="#" onclick="WindowShare('http://twitter.com/home?status=CAR Promotion http://www.comparexpress.com/ace/promo.aspx');">
                                </a></li>
                                <li class="fb-s"><a href="#" onclick="WindowShare('http://www.facebook.com/share.php?u=http://www.comparexpress.com/ace/promo.aspx Must-Buy');">
                                </a></li>
                                <li class="li-s"><a href="#" onclick="WindowShare('http://www.linkedin.com/shareArticle?mini=true&url=http://www.comparexpress.com/ace/promo.aspx');">
                                </a></li>
                                <li class="email-s"><a href="#" onclick="ShowSendMailPopup();"></a></li>--%>
                            </ul>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                </div>
                <!--END OF PROMO 1 !-->
                <!--PROMO 2 !-->
                <div id="divPromo2" runat="server" class="promogrid2">
                    <div id="divPromo2Disable" runat="server">
                    </div>
                    <h2>
                        China Taiping 10% off Home Insurance
                    </h2>
                    <div class="pro-warp">
                        <div class="pro-adv">
                            <img src="http://www.sg.cntaiping.com/chinainsB2C/products/images/pic_homeins.jpg"
                                alt="Home Insurance" width="328" height="147" />
                        </div>
                        <div class="pro-badge">
                            <img src="/images/logos/china.jpg" alt="Special Offers" width="133" height="94" />
                            <ul class="view-action">
                                <li class="view-deal"><a href="china-home.aspx" target="_blank"></a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="clear">
                    </div>
                    <div class="promo_action">
                        <div class="countdown_wrap">
                            <!-- Countdown dashboard start -->
                            <asp:Timer runat="server" ID="UpdateTimer2" Interval="1000" OnTick="UpdateTimer2_Tick" />
                            <asp:UpdatePanel runat="server" ID="TimedPanel2" UpdateMode="Conditional">
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="UpdateTimer2" EventName="Tick" />
                                </Triggers>
                                <ContentTemplate>
                                    <div id="countdown_db">
                                        <div class="dash2 days_dash2" id="divTimer2Days" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer2Days" Text="00" /></div>
                                        </div>
                                        <div class="dash2 hours_dash2" id="divTimer2Hours" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer2Hours" Text="00" /></div>
                                        </div>
                                        <div class="dash2 minutes_dash2" id="divTimer2Minutes" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer2Minutes" Text="00" /></div>
                                        </div>
                                        <div class="dash2 seconds_dash2" id="divTimer2Seconds" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer2Seconds" Text="00" /></div>
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            <!-- Countdown dashboard end -->
                            <div class="info_message" id="Div2" style="display: none;">
                                Promotion just started
                            </div>
                        </div>
                        <div class="pro-share">
                            <ul class="pro-s-icons">
                                <%--<li class="tb-s"><a href="#" onclick="WindowShare('http://twitter.com/home?status=ACE Travel Promotion on any Single Trip plan  http://www.comparexpress.com/ace/promo.aspx');">
                                </a></li>
                                <li class="fb-s"><a href="#" onclick="WindowShare('http://www.facebook.com/share.php?u=http://www.comparexpress.com/ace/promo.aspx Must-Buy');">
                                </a></li>
                                <li class="li-s"><a href="#" onclick="WindowShare('http://www.linkedin.com/shareArticle?mini=true&url=http://www.comparexpress.com/ace/promo.aspx');">
                                </a></li>
                                <li class="email-s"><a href="#" onclick="ShowSendMailPopup();"></a></li>--%>
                            </ul>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                </div>
                <!--END OF PROMO 2 !-->
                <!--PROMO 3 !-->
                <div id="divPromo3" runat="server" class="promogrid3">
                    <div id="divPromo3Disable" runat="server">
                    </div>
                    <div style="display:none;">
                    <h2>
                        HSBC Travel Insurance - with free gift</h2>
                    <div class="pro-warp">
                        <div class="pro-adv">
                            <img src="/images/promo/pro_adv1.gif" alt="Car Insurance" width="328" height="147" />
                        </div>
                        <div class="pro-badge">
                            <img src="/images/logo_big/hsbcbank.jpg" alt="Special Offers" width="133" height="94" />
                            <ul class="view-action">
                                <li class="view-deal"><a href="../travel-insurance/"></a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="clear">
                    </div>
                    </div>
                    <div class="promo_action">
                        <div class="countdown_wrap">
                            <!-- Countdown dashboard start -->
                            <asp:Timer runat="server" ID="UpdateTimer3" Interval="1000" OnTick="UpdateTimer3_Tick" />
                            <asp:UpdatePanel runat="server" ID="TimedPanel3" UpdateMode="Conditional">
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="UpdateTimer3" EventName="Tick" />
                                </Triggers>
                                <ContentTemplate>
                                    <div id="Div1">
                                        <div class="dash2 days_dash2" id="divTimer3Days" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer3Days" Text="00" /></div>
                                        </div>
                                        <div class="dash2 hours_dash2" id="divTimer3Hours" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer3Hours" Text="00" /></div>
                                        </div>
                                        <div class="dash2 minutes_dash2" id="divTimer3Minutes" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer3Minutes" Text="00" /></div>
                                        </div>
                                        <div class="dash2 seconds_dash2" id="divTimer3Seconds" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer3Seconds" Text="00" /></div>
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            <!-- Countdown dashboard end -->
                            <div class="info_message" id="Div4" style="display: none;">
                                Promotion just started
                            </div>
                        </div>
                        <div class="pro-share">
                            <ul class="pro-s-icons">
                               <%-- <li class="tb-s"><a href="#" onclick="WindowShare('http://twitter.com/home?status=ACE Travel Promotion on any Single Trip plan  http://www.comparexpress.com/ace/promo.aspx');">
                                </a></li>
                                <li class="fb-s"><a href="#" onclick="WindowShare('http://www.facebook.com/share.php?u=http://www.comparexpress.com/ace/promo.aspx Must-Buy');">
                                </a></li>
                                <li class="li-s"><a href="#" onclick="WindowShare('http://www.linkedin.com/shareArticle?mini=true&url=http://www.comparexpress.com/ace/promo.aspx');">
                                </a></li>
                                <li class="email-s"><a href="#" onclick="ShowSendMailPopup();"></a></li>--%>
                            </ul>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                </div>
                <!--END OF PROMO 3 !-->
                <!--PROMO 4 !-->
                <div id="divPromo4" runat="server" class="promogrid4">
                    <div id="divPromo4Disable" runat="server">
                    </div>
                    <h2>
                        eTiQa 10% promo E-Protect (PA)
                    </h2>
                    <div class="pro-warp">
                        <div class="pro-adv">
                            <img src="http://www.etiqa.com.my/English/Insurance/products/Personal/Protection/PersonalProtectionPlan/PublishingImages/img_protectionplan.jpg"
                                alt="Personal Accident" width="328" height="147" />
                        </div>
                        <div class="pro-badge">
                            <img src="/images/logos/etiqa.jpg" alt="Special Offers" width="133" height="94" />
                            <ul class="view-action">
                                <li class="view-deal"><a href="#"></a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="clear">
                    </div>
                    <div class="promo_action">
                        <div class="countdown_wrap">
                            <!-- Countdown dashboard start -->
                            <asp:Timer runat="server" ID="UpdateTimer4" Interval="1000" OnTick="UpdateTimer4_Tick" />
                            <asp:UpdatePanel runat="server" ID="TimedPanel4" UpdateMode="Conditional">
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="UpdateTimer4" EventName="Tick" />
                                </Triggers>
                                <ContentTemplate>
                                    <div id="countdown_wrap">
                                        <div class="dash2 days_dash2" id="divTimer4Days" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer4Days" Text="00" /></div>
                                        </div>
                                        <div class="dash2 hours_dash2" id="divTimer4Hours" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer4Hours" Text="00" /></div>
                                        </div>
                                        <div class="dash2 minutes_dash2" id="divTimer4Minutes" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer4Minutes" Text="00" /></div>
                                        </div>
                                        <div class="dash2 minutes_dash2" id="divTimer4Seconds" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer4Seconds" Text="00" /></div>
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            <!-- Countdown dashboard end -->
                            <div class="info_message" id="Div5" style="display: none;">
                                Promotion just started
                            </div>
                        </div>
                        <div class="pro-share">
                            <ul class="pro-s-icons">
                                <%--<li class="tb-s"><a href="#" onclick="WindowShare('http://twitter.com/home?status=ACE Travel Promotion on any Single Trip plan  http://www.comparexpress.com/ace/promo.aspx');">
                                </a></li>
                                <li class="fb-s"><a href="#" onclick="WindowShare('http://www.facebook.com/share.php?u=http://www.comparexpress.com/ace/promo.aspx Must-Buy');">
                                </a></li>
                                <li class="li-s"><a href="#" onclick="WindowShare('http://www.linkedin.com/shareArticle?mini=true&url=http://www.comparexpress.com/ace/promo.aspx');">
                                </a></li>
                                <li class="email-s"><a href="#" onclick="ShowSendMailPopup();"></a></li>--%>
                            </ul>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                </div>
                <!--END OF PROMO 4 !-->
                <!--PROMO 5 !-->
                <div id="divPromo5" runat="server" class="promogrid5">
                    <div id="divPromo5Disable" runat="server">
                    </div>
                    <h2>
                        Liberty - x% promo for travel insurance
                    </h2>
                    <div class="pro-warp">
                        <div class="pro-adv">
                            <img src="http://www.startbackpacking.com/travel/images/backpacking-travel-insurance.jpg"
                                alt="Travel Insurance" width="328" height="147" />
                        </div>
                        <div class="pro-badge">
                            <img src="/images/logos/liberty.jpg" alt="Special Offers" width="133" height="94" />
                            <ul class="view-action">
                                <li class="view-deal"><a href="#"></a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="clear">
                    </div>
                    <div class="promo_action">
                        <div class="countdown_wrap">
                            <!-- Countdown dashboard start -->
                            <asp:Timer runat="server" ID="UpdateTimer5" Interval="1000" OnTick="UpdateTimer5_Tick" />
                            <asp:UpdatePanel runat="server" ID="TimedPanel5" UpdateMode="Conditional">
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="UpdateTimer5" EventName="Tick" />
                                </Triggers>
                                <ContentTemplate>
                                    <div id="countdown_wrap">
                                        <div class="dash2 days_dash2" id="divTimer5Days" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer5Days" Text="00" /></div>
                                        </div>
                                        <div class="dash2 hours_dash2" id="divTimer5Hours" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer5Hours" Text="00" /></div>
                                        </div>
                                        <div class="dash2 minutes_dash2" id="divTimer5Minutes" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer5Minutes" Text="00" /></div>
                                        </div>
                                        <div class="dash2 minutes_dash2" id="divTimer5Seconds" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer5Seconds" Text="00" /></div>
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            <!-- Countdown dashboard end -->
                            <div class="info_message" id="Div11" style="display: none;">
                                Promotion just started
                            </div>
                        </div>
                        <div class="pro-share">
                            <ul class="pro-s-icons">
                                <%--<li class="tb-s"><a href="#" onclick="WindowShare('http://twitter.com/home?status=ACE Travel Promotion on any Single Trip plan  http://www.comparexpress.com/ace/promo.aspx');">
                                </a></li>
                                <li class="fb-s"><a href="#" onclick="WindowShare('http://www.facebook.com/share.php?u=http://www.comparexpress.com/ace/promo.aspx Must-Buy');">
                                </a></li>
                                <li class="li-s"><a href="#" onclick="WindowShare('http://www.linkedin.com/shareArticle?mini=true&url=http://www.comparexpress.com/ace/promo.aspx');">
                                </a></li>
                                <li class="email-s"><a href="#" onclick="ShowSendMailPopup();"></a></li>--%>
                            </ul>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                </div>
                <!--END OF PROMO 5 !-->
                <!--PROMO 6 !-->
                <div id="divPromo6" runat="server" class="promogrid6">
                    <div id="divPromo6Disable" runat="server">
                    </div>
                    <h2>
                        eTiQa x% promo Travel Insurance -
                    </h2>
                    <div class="pro-warp">
                        <div class="pro-adv">
                            <img src="http://www.etiqa.com.my/English/International/Singapore/Personal%20Insurance/PublishingImages/img_vacashield.jpg"
                                alt="Travel Insurance" width="328" height="147" />
                        </div>
                        <div class="pro-badge">
                            <img src="/images/logos/etiqa.jpg" alt="Special Offers" width="133" height="94" />
                            <ul class="view-action">
                                <li class="view-deal"><a href="#"></a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="clear">
                    </div>
                    <div class="promo_action">
                        <div class="countdown_wrap">
                            <!-- Countdown dashboard start -->
                            <asp:Timer runat="server" ID="UpdateTimer6" Interval="1000" OnTick="UpdateTimer6_Tick" />
                            <asp:UpdatePanel runat="server" ID="TimedPanel6" UpdateMode="Conditional">
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="UpdateTimer6" EventName="Tick" />
                                </Triggers>
                                <ContentTemplate>
                                    <div id="countdown_wrap">
                                        <div class="dash2 days_dash2" id="divTimer6Days" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer6Days" Text="00" /></div>
                                        </div>
                                        <div class="dash2 hours_dash2" id="divTimer6Hours" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer6Hours" Text="00" /></div>
                                        </div>
                                        <div class="dash2 minutes_dash2" id="divTimer6Minutes" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer6Minutes" Text="00" /></div>
                                        </div>
                                        <div class="dash2 minutes_dash2" id="divTimer6Seconds" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer6Seconds" Text="00" /></div>
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            <!-- Countdown dashboard end -->
                            <div class="info_message" id="Div12" style="display: none;">
                                Promotion just started
                            </div>
                        </div>
                        <div class="pro-share">
                            <ul class="pro-s-icons">
                                <%--<li class="tb-s"><a href="#" onclick="WindowShare('http://twitter.com/home?status=ACE Travel Promotion on any Single Trip plan  http://www.comparexpress.com/ace/promo.aspx');">
                                </a></li>
                                <li class="fb-s"><a href="#" onclick="WindowShare('http://www.facebook.com/share.php?u=http://www.comparexpress.com/ace/promo.aspx Must-Buy');">
                                </a></li>
                                <li class="li-s"><a href="#" onclick="WindowShare('http://www.linkedin.com/shareArticle?mini=true&url=http://www.comparexpress.com/ace/promo.aspx');">
                                </a></li>
                                <li class="email-s"><a href="#" onclick="ShowSendMailPopup();"></a></li>--%>
                            </ul>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                </div>
                <!--END OF PROMO 6 !-->
                <!--PROMO 7 !-->
                <div id="divPromo7" runat="server" class="promogrid7">
                    <div id="divPromo7Disable" runat="server">
                    </div>
                    <h2>
                        Liberty - x% promo for PA</h2>
                    <div class="pro-warp">
                        <div class="pro-adv">
                            <img src="http://www.libertyinsurance.com.sg/images/banners/personal.jpg" alt="Personal Accident"
                                width="328" height="147" />
                        </div>
                        <div class="pro-badge">
                            <img src="/images/logos/liberty.jpg" alt="Special Offers" width="133" height="94" />
                            <ul class="view-action">
                                <li class="view-deal"><a href="#"></a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="clear">
                    </div>
                    <div class="promo_action">
                        <div class="countdown_wrap">
                            <!-- Countdown dashboard start -->
                            <asp:Timer runat="server" ID="UpdateTimer7" Interval="1000" OnTick="UpdateTimer7_Tick" />
                            <asp:UpdatePanel runat="server" ID="TimedPanel7" UpdateMode="Conditional">
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="UpdateTimer7" EventName="Tick" />
                                </Triggers>
                                <ContentTemplate>
                                    <div id="countdown_wrap">
                                        <div class="dash2 days_dash2" id="divTimer7Days" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer7Days" Text="00" /></div>
                                        </div>
                                        <div class="dash2 hours_dash2" id="divTimer7Hours" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer7Hours" Text="00" /></div>
                                        </div>
                                        <div class="dash2 minutes_dash2" id="divTimer7Minutes" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer7Minutes" Text="00" /></div>
                                        </div>
                                        <div class="dash2 minutes_dash2" id="divTimer7Seconds" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer7Seconds" Text="00" /></div>
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            <!-- Countdown dashboard end -->
                            <div class="info_message" id="Div13" style="display: none;">
                                Promotion just started
                            </div>
                        </div>
                        <div class="pro-share">
                            <ul class="pro-s-icons">
                                <%--<li class="tb-s"><a href="#" onclick="WindowShare('http://twitter.com/home?status=ACE Travel Promotion on any Single Trip plan  http://www.comparexpress.com/ace/promo.aspx');">
                                </a></li>
                                <li class="fb-s"><a href="#" onclick="WindowShare('http://www.facebook.com/share.php?u=http://www.comparexpress.com/ace/promo.aspx Must-Buy');">
                                </a></li>
                                <li class="li-s"><a href="#" onclick="WindowShare('http://www.linkedin.com/shareArticle?mini=true&url=http://www.comparexpress.com/ace/promo.aspx');">
                                </a></li>
                                <li class="email-s"><a href="#" onclick="ShowSendMailPopup();"></a></li>--%>
                            </ul>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                </div>
                <!--END OF PROMO 7 !-->
                <!--PROMO 8 !-->
                <div id="divPromo8" runat="server" class="promogrid8">
                    <div id="divPromo8Disable" runat="server">
                    </div>
                    <h2>
                        China 10% Travel Insurance</h2>
                    <div class="pro-warp">
                        <div class="pro-adv">
                            <img src="http://platform.ak.fbcdn.net/www/app_full_proxy.php?app=4949752878&v=1&size=o&cksum=a81e4def8668bd8c7fc71537d336f1b0&src=http%3A%2F%2Ffarm3.static.flickr.com%2F2660%2F5835094129_cb94a701cf_m.jpg"
                                alt="Car Insurance" width="328" height="147" />
                        </div>
                        <div class="pro-badge">
                            <img src="/images/logos/china.jpg" alt="Special Offers" width="133" height="94" />
                            <ul class="view-action">
                                <li class="view-deal"><a href="#"></a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="clear">
                    </div>
                    <div class="promo_action">
                        <div class="countdown_wrap">
                            <!-- Countdown dashboard start -->
                            <asp:Timer runat="server" ID="UpdateTimer8" Interval="1000" OnTick="UpdateTimer8_Tick" />
                            <asp:UpdatePanel runat="server" ID="TimedPanel8" UpdateMode="Conditional">
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="UpdateTimer8" EventName="Tick" />
                                </Triggers>
                                <ContentTemplate>
                                    <div id="Div6">
                                        <div class="dash2 days_dash2" id="divTimer8Days" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer8Days" Text="00" /></div>
                                        </div>
                                        <div class="dash2 hours_dash2" id="divTimer8Hours" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer8Hours" Text="00" /></div>
                                        </div>
                                        <div class="dash2 minutes_dash2" id="divTimer8Minutes" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer8Minutes" Text="00" /></div>
                                        </div>
                                        <div class="dash2 minutes_dash2" id="divTimer8Seconds" runat="server">
                                            <span class="dash_title"></span>
                                            <div class="digit2">
                                                <asp:Label runat="server" ID="lblTimer8Seconds" Text="00" /></div>
                                        </div>
                                    </div>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            <!-- Countdown dashboard end -->
                            <div class="info_message" id="Div14" style="display: none;">
                                Promotion just started
                            </div>
                        </div>
                        <div class="pro-share">
                            <ul class="pro-s-icons">
                                <%--<li class="tb-s"><a href="#" onclick="WindowShare('http://twitter.com/home?status=ACE Travel Promotion on any Single Trip plan  http://www.comparexpress.com/ace/promo.aspx');">
                                </a></li>
                                <li class="fb-s"><a href="#" onclick="WindowShare('http://www.facebook.com/share.php?u=http://www.comparexpress.com/ace/promo.aspx Must-Buy');">
                                </a></li>
                                <li class="li-s"><a href="#" onclick="WindowShare('http://www.linkedin.com/shareArticle?mini=true&url=http://www.comparexpress.com/ace/promo.aspx');">
                                </a></li>
                                <li class="email-s"><a href="#" onclick="ShowSendMailPopup();"></a></li>--%>
                            </ul>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                </div>
                <!--END OF PROMO 8 !-->
                <div class="clear">
                </div>
                <div class="seperator">
                </div>
                <div style="position: absolute; bottom: 0;">
                    <img src="/images/promo/whycx.png" alt="Why buy through CompareXpress" width="1001"
                        height="100" />
                </div>
                <div class="clear">
                </div>
            </div>
        </div>
    </div>
    <div id="backgroundPopup">
        &nbsp;</div>
    <div style="display: none;">
        <input id="inputPromoPosBase" runat="server" type="hidden" />
        <asp:ImageButton ID="imgbtnBuyNow" runat="server" ImageUrl="~/images/button/quote-buy.png" />
        <asp:LinkButton runat="server" ID="lnkbtnPopup" Text="click"></asp:LinkButton>
    </div>
    <cc1:ModalPopupExtender ID="mpePopup" runat="server" PopupControlID="pnlPopup" BackgroundCssClass="modalbg"
        TargetControlID="imgbtnBuyNow" CancelControlID="btnClose" BehaviorID="mdlPopupBuyNow">
    </cc1:ModalPopupExtender>
    <!-- Pageload Popup | Start -->
    <asp:Panel ID="pnlPopup" runat="server" Style="display: none;" CssClass="popup_new"
        Width="595px" Height="275px">
        <div id="divPopup" style="width: 571px; height: 251px;" class="pop_wrap">
            <div class="popup_rad" style="width: 571px; height: 26px;">
                <div class="right" style="width: 71px;">
                    <a href="#" name="ctl00$ContentPlaceHolder1$btnClose" onclick="HideBuyPopup();" id="A1">
                        <img src="/images/spacer.gif" id="btnClose" border="0" class="btn_close" width="71"
                            height="26" alt="Close" /></a>
                </div>
            </div>
            <div class="seperator_15px">
            </div>
            <div class="pop_form">
                <asp:TextBox ID="txtEmail" runat="server" CssClass="splinput"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvEmail" validationErrorCssClass="validationError"
                    runat="server" ValidationGroup="travel_insurance" ErrorMessage="" Text="" ControlToValidate="txtEmail"
                    Display="Dynamic"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator validationErrorCssClass="validationError" ID="cxvEmail"
                    runat="server" ValidationGroup="travel_insurance" ErrorMessage="" Text="" ControlToValidate="txtEmail"
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
                <div class="seperator_15px">
                </div>
                <div class="pop_btn" style="margin-right: 80px;">
                    <asp:Button runat="server" ID="btnGo" ValidationGroup="travel_insurance" CssClass="btn_continue"
                        OnClientClick="LoadValidationErrorCss(); return ValidateRedirect();" OnClick="btnGo_Click" />
                </div>
            </div>
            <div class="clear">
            </div>
            <div class="pop_stm" style="margin: 45px 0 0 83px;">
                <a href="../privacy/" target="_blank">Privacy Statement</a></div>
        </div>
    </asp:Panel>
    <!-- Pageload Popup | End   -->
    <div style="display: none;">
        <asp:ImageButton ID="imgbtnSend" runat="server" ImageUrl="~/images/button/quote-buy.png" />
    </div>
    <cc1:ModalPopupExtender ID="mpeSendMail" runat="server" PopupControlID="pnlSendMail"
        BackgroundCssClass="modalbg" TargetControlID="imgbtnSend" CancelControlID="btnSendMailClose"
        BehaviorID="mdlPopupSendMail">
    </cc1:ModalPopupExtender>
    <!-- Send Mail Popup | Start -->
    <asp:Panel ID="pnlSendMail" runat="server" Style="display: none;" CssClass="popup_new"
        Width="595px" Height="425px">
        <div id="div3" " " style="width: 571px; height: 401px;" class="pop_wrap1">
            <div class="popup_rad" style="width: 565px; height: 30px;">
                <div class="left popup_title">
                    <strong>Share this promotion with friends</strong>:</div>
                <div class="right" style="width: 71px;">
                    <a href="#" name="ctl00$ContentPlaceHolder1$btnSendMailClose" onclick="HideSendMailPopup();"
                        id="A2">
                        <img src="/images/spacer.gif" id="btnSendMailClose" border="0" class="btn_close"
                            width="71" height="26" alt="Close" /></a>
                </div>
            </div>
            <div class="seperator_15px">
            </div>
            <table cellpadding="0" cellspacing="0" border="0" class="table_details" style="width: 580px;">
                <tr>
                    <td width="220">
                    </td>
                    <td class="bg_grey_2" width="360">
                        <div>
                            <div class="curvetopleft left">
                            </div>
                            <div class="curvetopright right">
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="txtleft pad7px border1pxdotb_light">
                    </td>
                    <td class="bg_grey_2 pad7px border2pxdotb">
                        <asp:Label ID="lblMessage" ForeColor="Red" runat="server"></asp:Label>
                        <asp:ValidationSummary ID="ValidationSummary1" CssClass="errorSummary" HeaderText="Oops... Please complete the form"
                            runat="server" ValidationGroup="send_mail" />
                    </td>
                </tr>
                <tr>
                    <td class="txtleft pad7px border1pxdotb_light">
                        <strong>Your E-mail</strong>
                    </td>
                    <td class="bg_grey_2 pad7px border2pxdotb">
                        <asp:TextBox ID="txtEmailFrom" runat="server" Width="250" MaxLength="100"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" validationErrorCssClass="validationError"
                            runat="server" ValidationGroup="send_mail" ErrorMessage="" Text="" ControlToValidate="txtEmailFrom"
                            Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator validationErrorCssClass="validationError" ID="RegularExpressionValidator1"
                            runat="server" ValidationGroup="send_mail" ErrorMessage="" Text="" ControlToValidate="txtEmailFrom"
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="txtleft pad7px border1pxdotb_light">
                        <strong>Your Name</strong>
                    </td>
                    <td class="bg_grey_2 pad7px border2pxdotb">
                        <asp:TextBox ID="txtFullName" Width="250" MaxLength="80" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvFullName" runat="server" ControlToValidate="txtFullName"
                            validationErrorCssClass="validationError" ErrorMessage="" ValidationGroup="send_mail"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="revFullName" runat="server" ValidationGroup="send_mail"
                            ValidationExpression="^[a-zA-Z''-'\s]{1,80}$" validationErrorCssClass="validationError"
                            ControlToValidate="txtFullName" ErrorMessage=""></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="txtleft pad7px border1pxdotb_light">
                        <strong>Friend's E-mail</strong>
                    </td>
                    <td class="bg_grey_2 pad7px border2pxdotb">
                        <asp:TextBox ID="txtFriendEmail" runat="server" Width="250" MaxLength="100"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvFriendEmail" validationErrorCssClass="validationError"
                            runat="server" ValidationGroup="send_mail" ErrorMessage="" Text="" ControlToValidate="txtFriendEmail"
                            Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator validationErrorCssClass="validationError" ID="revFriendEmail"
                            runat="server" ValidationGroup="send_mail" ErrorMessage="" Text="" ControlToValidate="txtFriendEmail"
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="txtleft pad7px border1pxdotb_light">
                        <strong>Verification Code</strong>
                    </td>
                    <td class="bg_grey_2 pad7px border2pxdotb">
                        <asp:UpdatePanel runat="server" ID="uplCAPCHA">
                            <ContentTemplate>
                                <asp:Image ID="imgCAPTCHA" runat="server" />
                                <asp:ImageButton ID="btnNewImage" runat="server" OnClick="btnNewImage_Click" ImageUrl="~/images/icons/refresh.gif"
                                    ToolTip="Reload" AlternateText="Refresh" />
                            </ContentTemplate>
                        </asp:UpdatePanel>
                        <asp:UpdateProgress AssociatedUpdatePanelID="uplCAPCHA" DisplayAfter="100" runat="server"
                            ID="udpCAPTCHA">
                            <ProgressTemplate>
                                <asp:Image ID="imgLoading" ImageUrl="~/images/loading7.gif" runat="server" />
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                    </td>
                </tr>
                <tr>
                    <td class="txtleft pad7px border1pxdotb_light">
                        <strong>Text in Box</strong>
                    </td>
                    <td class="bg_grey_2 pad7px border2pxdotb">
                        <asp:UpdatePanel ID="uplSecurityCode" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <span class="indicator">
                                    <asp:TextBox ID="txtSecurityCode" Width="200px" MaxLength="20" runat="server"></asp:TextBox>
                                </span><span class="indicator">
                                    <asp:RequiredFieldValidator ID="rfvSecurityCheck" runat="server" ControlToValidate="txtSecurityCode"
                                        Display="Dynamic" ErrorMessage="" CssClass="validationErrorControl" Text="" ValidationGroup="send_mail"></asp:RequiredFieldValidator>
                                </span>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </td>
                </tr>
                <tr>
                    <td class="txtleft pad7px ">
                        <div style="vertical-align: top;">
                        </div>
                    </td>
                    <td class="bg_grey_2 pad7px ">
                        <span class="bg_grey_2 pad7px">
                            <asp:Button runat="server" ID="btnSendMail" ValidationGroup="send_mail" CssClass="button_share"
                                OnClientClick="LoadValidationErrorCss();if (ValidateSendMail()){this.removeAttribute('onmouseout');this.removeAttribute('onmouseup');this.className = 'button_processing';}else{return false;}"
                                OnClick="btnSendMail_Click" />
                        </span>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td class="bg_grey_2 w210px">
                        <div>
                            <div class="curvebottomleft left">
                            </div>
                            <div class="curvebottomright right">
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
            <div class="clear">
            </div>
            <div class="pop_stm" style="margin: 10px 0 0 0">
                <a href="../privacy/" target="_blank">Privacy Statement</a></div>
            <div class="clear">
            </div>
        </div>
    </asp:Panel>
    <!-- Send Mail Popup | End   -->

    <script type="text/javascript">

        window.onload = ShowSendMailPopup();

        function ShowBuyPopup() {
            var modpop = $find("mdlPopupBuyNow");
            if (!modpop) { return; }
            modpop.show();
        }

        function HideBuyPopup() {
            var modpop = $find("mdlPopupBuyNow");
            if (!modpop) { return; }
            modpop.hide();
        }

        function ValidateRedirect() {
            if (Page_ClientValidate('travel_insurance')) {
                HideBuyPopup();
                //window.open('https://www.acetravelinsurance.com.sg/ATISG/Get-a-Quote?brokerCode=Comparex&promoCode=35DISC');
                return true;
            }
        }

        function ShowSendMailPopup() {
            var modpopsend = $find("mdlPopupSendMail");
            if (!modpopsend) { return; }
            modpopsend.show();
        }

        function HideSendMailPopup() {
            var modpopsend = $find("mdlPopupSendMail");
            if (!modpopsend) { return; }
            modpopsend.hide();
        }

        function ValidateSendMail() {
            if (Page_ClientValidate('send_mail')) {
                //HideSendMailPopup();
                return true;
            }
        }

        function WindowShare(url) {
            w = 450;
            h = 550;
            name = 'test';
            var win = window.open(url, name,
              'width=' + w + ', height=' + h + ', ' +
              'location=no, menubar=no, ' +
              'status=no, toolbar=no, scrollbars=no, resizable=yes');
            win.resizeTo(w, h);
            win.focus();
        }


        $(document).ready(function() {
            //function for contact form dropdown
            function contact() {
                if ($("#contactForm").is(":hidden")) {
                    $("#contactForm").slideDown("slow");
                    $("#backgroundPopup").css({ "opacity": "0.7" });
                    $("#backgroundPopup").fadeIn("slow");
                }
                else {
                    $("#contactForm").slideUp("slow");
                    $("#backgroundPopup").fadeOut("slow");
                }
            }

            //run contact form when any contact link is clicked
            $(".contact").click(function() { contact() });

            //animation for same page links #
            /*
            $('a[href*=#]').each(function() {
            if (location.pathname.replace(/^//,'') == this.pathname.replace(/^//,'')
            && location.hostname == this.hostname
            && this.hash.replace(/#/,'') ) {
            var $targetId = $(this.hash), $targetAnchor = $('[name=' + this.hash.slice(1) +']');
            var $target = $targetId.length ? $targetId : $targetAnchor.length ? $targetAnchor : false;
            if ($(this.hash).length) {
            $(this).click(function(event) {
            var targetOffset = $(this.hash).offset().top;
            var target = this.hash;
            event.preventDefault();
            $('html, body').animate({scrollTop: targetOffset}, 500);
            return false;
            });
            }
            }
            });
            */

            //only need force for IE6
            $("#backgroundPopup").css({
                "height": document.documentElement.clientHeight
            });
        });

        var prm = Sys.WebForms.PageRequestManager.getInstance();
        prm.add_beginRequest(beginRequest);

        function beginRequest() {
            prm._scrollPosition = null;
        }
    </script>

    <div id="divFaceBookDetails" runat="server" visible="false">
        <hr />
        <br />
        <p style="text-decoration: underline">
            <i>Your Facebook Info:</i></p>
        <p>
            Access Token:
            <asp:Label ID="Label_AccessToken" runat="server" Text="?"></asp:Label>
            <br />
            User ID:
            <asp:Label ID="Label_UserID" runat="server" Text="?"></asp:Label>
            <br />
            User Name:
            <asp:Label ID="Label_Name" runat="server" Text="?"></asp:Label>
            <br />
            First Name:
            <asp:Label ID="Label_FirstName" runat="server" Text="?"></asp:Label>
            <br />
            SurName:
            <asp:Label ID="Label_SurName" runat="server" Text="?"></asp:Label>
            <br />
            Relationship status:
            <asp:Label ID="Label_RelationshipStatus" runat="server" Text="?"></asp:Label>
            <br />
            Email:
            <asp:Label ID="Label_Email" runat="server" Text="?"></asp:Label>
            <br />
            Date of Birth:
            <asp:Label ID="Label_DOB" runat="server" Text="?"></asp:Label>
            <br />
        </p>
        <br />
        <asp:Button ID="btnPublisFBMessage" runat="server" OnClick="PublishClick" Text="Publish Promotion Message"
            Width="200" Height="30" />
        <br />
        <p>
            Click the above button to publish a sample promotion message to your wall.</p>
    </div>
    <br />
    <hr />
    Server Variables:<br />
    <asp:Label runat="server" ID="lblServerVariables" />
</asp:Content>
